﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Wechat.Domain;
using Wechat.Dto.Request;
using Wechat.Dto.Response;

namespace Wechat.API
{
    /// <summary>
    /// AutoMapper
    /// </summary>
    public class AutoMapperBooStrapper
    {
        public static void RegisterMaps()
        {
            AutoMapper.Mapper.Initialize(cfg =>
            {
                //微信菜单
                cfg.CreateMap<WechatMemuRequest, WechatMemu>();

                //微信消息回复
                cfg.CreateMap<ReplyMsgRequest, ReplyMsg>();

                //微信图文信息
                cfg.CreateMap<WechatImageTextRequest, WechatImageText>();

                //微信图文信息Response
                cfg.CreateMap<WechatImageText, WechatImageTextResponse>();

                cfg.CreateMap<WechatAutoReplyRequest, WechatAutoReply>();
            });
        }
    }
}